package com.x.crm.model;

import com.x.crm.DocDesc;
import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@MappingTable(tableName = "CRM_CUSTOMER_LEVEL")
public class CustomerLevel extends BaseObject{
    @DocDesc("客户等级ID")
    @MappingColumn(columnName = "LEVEL_ID", columnPk = true, columnLength = 32)
    private String levelId;
    @DocDesc("客户等级")
    @MappingColumn(columnName = "LEVEL_TXT")
    private String levelTxt;
    @DocDesc("市场ID")
    @MappingColumn(columnName = "MARKET_ID")
    private String marketId;
    @DocDesc("车商ID")
    @MappingColumn(columnName = "SHOP_ID")
    private String shopId;
    @DocDesc("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @MappingColumn(columnName = "LEVEL_CREATE_TIME")
    private Date levelCreateTime;
    @DocDesc("状态")
    @MappingColumn(columnName = "LEVEL_STATE")
    private Integer levelState;


    public CustomerLevel(){}
    public CustomerLevel(String marketId, Integer state){
        this.marketId = marketId;
        this.levelState = state;
    }
    public String getLevelId() {
        return levelId;
    }

    public void setLevelId(String levelId) {
        this.levelId = levelId;
    }

    public String getLevelTxt() {
        return levelTxt;
    }

    public void setLevelTxt(String levelTxt) {
        this.levelTxt = levelTxt;
    }

    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public Date getLevelCreateTime() {
        return levelCreateTime;
    }

    public void setLevelCreateTime(Date levelCreateTime) {
        this.levelCreateTime = levelCreateTime;
    }

    public Integer getLevelState() {
        return levelState;
    }

    public void setLevelState(Integer levelState) {
        this.levelState = levelState;
    }


}
